package de.fhaugsburg.games.boardgames.connect4;
import de.fhaugsburg.games.boardgames.*;
import de.fhaugsburg.games.boardgames.connect4.strategy.*;
import de.fhaugsburg.games.boardgames.scrabble.scrabbleboard.IPiece;


public class CPUPlayer extends Connect4Player {
	
	private Aintelligence cpulogic;
	
	public CPUPlayer(String name, BinaryPiece symbol, Board<IPiece,Object> board) {
		super(name,symbol,board);
		setPlayerState(PlayerState.READY);
		//this is the class where the gaming-intelligence is located
		cpulogic = new RandomRobot();
//		cpulogic = new WeightedRobot();
	}
	
	
	
	/**
	 * the actual move is made, based on the decision of the robot
	 */
	public int getMove() {
		return cpulogic.columnProposal(getSymbol(), (Connect4Board) getBoard());
	}
	
}
